package itheima.com.zuoye.d06;

public abstract class Insiders {
//    属性：工号、姓名、年龄
//    行为：发布通知
    private String workNumber;
    private String name;
    private int age;
    public  void publishNotice(){
        constant c = new constant();
        System.out.println(c.NOTICE_TITLE);
        A();
        System.out.println(c.NOTICE);

    };
    public abstract void A ();

    public Insiders(String workNumber, String name, int age) {
        this.workNumber = workNumber;
        this.name = name;
        this.age = age;
    }
    public Insiders() {
    }

    public String getWorkNumber() {
        return workNumber;
    }

    public void setWorkNumber(String workNumber) {
        this.workNumber = workNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
